package com.sunxd.rule.judge.handler;

import com.sunxd.rule.judge.beans.enums.OperatorTypeEnum;
import com.sunxd.rule.judge.beans.param.Condition;
import org.springframework.stereotype.Component;

/**
 *
 */
@Component
public class LTConditionHandler extends AbsConditionHandler {

    @Override
    public Boolean doJudge(Condition condition) {
        return conditionJudge.lt(condition.getLeft(), condition.getRight());
    }

    @Override
    public String operatorType() {
        return OperatorTypeEnum.LT.name();
    }


}
